home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / SNNSV32.ZIP / SNNSv3.2 / xgui / sources / ui_file.ph < prev    next >
Encoding:
Text File  |  1994-04-25  |  1.9 KB  |  80 lines

  1. /*****************************************************************************
  2.   FILE           : ui_file.ph
  3.   SHORTNAME      : file.ph
  4.   SNNS VERSION   : 3.2
  5.  
  6.   PURPOSE        : Header file of correspondent '.c' file
  7.   NOTES          :
  8.  
  9.   AUTHOR         : Tilman Sommer
  10.   DATE           : 22.5.1990
  11.  
  12.   CHANGED BY     :
  13.   IDENTIFICATION : @(#)ui_file.ph    1.8 3/2/94
  14.   SCCS VERSION   : 1.8
  15.   LAST CHANGE    : 3/2/94
  16.  
  17.              Copyright (c) 1990-1994  SNNS Group, IPVR, Univ. Stuttgart, FRG
  18.              
  19. ******************************************************************************/
  20.  
  21.  
  22. #ifndef _UI_FILE_DEFINED_
  23. #define _UI_FILE_DEFINED_
  24.  
  25.  
  26. /* begin global definition section */
  27.  
  28.  
  29. void ui_xCreateFilePanel (Widget);
  30.  
  31.  
  32. Widget    ui_filePanel;
  33.  
  34. Bool      ui_fileIsCreated = FALSE; /* file panel created yes or no */
  35.  
  36.  
  37. /* end global definition section */
  38.  
  39.  
  40. /* begin private definition section */
  41.  
  42.  
  43. #define SELECTED_NAME_LENGTH   1024
  44. #define MAX_DIR_ENTRIES        1024
  45. #define DIR_BUFFER_LENGTH      4096
  46.  
  47.  
  48. static void ui_changeDirectory (char []);
  49. static void ui_checkPath (char *);
  50. static void ui_expandPath (char *);
  51. static void ui_loadSelectedFile (Widget, Widget, caddr_t);
  52. static void ui_readDirectory (void);
  53. static void ui_saveSelectedFile (Widget, Widget, caddr_t);
  54. static void ui_selectionEventProc (Widget, Display *, XEvent *);
  55. static void ui_setExtString (Widget, int, caddr_t);
  56. static void ui_strSort (int, int);
  57.  
  58.  
  59. static int currentFileType = UI_FILE_NET;
  60. static char extMask[10];
  61. static char dirEntries[DIR_BUFFER_LENGTH];
  62. static char sortedDirEntries[DIR_BUFFER_LENGTH];
  63. static char *dirPtr[MAX_DIR_ENTRIES];
  64. static int maxEntries;
  65. static struct stat *stat_buf;
  66.  
  67. static    Widget fileBox, selectorBox;
  68. static Widget netToggle, patToggle, resToggle, cfgToggle, txtToggle;
  69.  
  70.  
  71. /* end private definition section */
  72.  
  73.  
  74. #endif /* _UI_FILE_DEFINED_ */
  75.  
  76.  
  77.  
  78. /* end of file */
  79. /* lines: 35 */
  80.